﻿
using NbMeterServices.Entity;
using SqlSugar;

namespace NbMeterServices;
/// <summary>
/// 仪表监控数据表
/// </summary>
/// <summary>
/// 仪表监控数据表
/// </summary>
[SugarTable("MR_MeterData_Day", "仪表监控数据表")]
[Tenant("1300000000001")]
public class MrMeterDataDay
{
    /// <summary>
    /// 水表序列号
    /// </summary>
    [SugarColumn(ColumnName = "MeterId", ColumnDescription = "水表ID", IsPrimaryKey = true)]
    public long MeterId { get; set; }

    /// <summary>
    /// 水表序列号
    /// </summary>
    [SugarColumn(ColumnName = "MeterDate", ColumnDescription = "水表序列号", IsPrimaryKey = true)]
    public DateTime MeterDate { get; set; }

    /// <summary>
    /// 水表序列号
    /// </summary>
    [SugarColumn(ColumnName = "MeterNo", ColumnDescription = "水表序列号", Length = 20)]
    public string? MeterNo { get; set; }

    /// <summary>
    /// 累计水量
    /// </summary>
    [SugarColumn(ColumnName = "Used", ColumnDescription = "累计用水量", Length = 8, DecimalDigits = 3)]
    public decimal? Used { get; set; }

    /// <summary>
    /// 累计水量
    /// </summary>
    [SugarColumn(ColumnName = "UsedDayFirst", ColumnDescription = "累计用水量当天第一条", Length = 8, DecimalDigits = 3)]
    public decimal? UsedDayFirst { get; set; }

    /// <summary>
    /// 累计水量
    /// </summary>
    [SugarColumn(ColumnName = "DayUsed", ColumnDescription = "天用水量", Length = 8, DecimalDigits = 3)]
    public decimal? DayUsed { get; set; }

    ///// <summary>
    ///// 累计水量
    ///// </summary>
    //[SugarColumn(ColumnName = "AdjustUsed", ColumnDescription = "调整天用水量", Length = 8, DecimalDigits = 3)]
    //public decimal? AdjustUsed { get; set; }

    /// <summary>
    /// 累计水量
    /// </summary>
    [SugarColumn(ColumnName = "Inflow", ColumnDescription = "累计进水量", Length = 8, DecimalDigits = 3)]
    public decimal? Inflow { get; set; }

    /// <summary>
    /// 累计水量
    /// </summary>
    [SugarColumn(ColumnName = "DayInflow", ColumnDescription = "天进水量", Length = 8, DecimalDigits = 3)]
    public decimal? DayInflow { get; set; }


    ///// <summary>
    ///// 累计水量
    ///// </summary>
    //[SugarColumn(ColumnName = "AdjustInflow", ColumnDescription = "调整天进水量", Length = 8, DecimalDigits = 3)]
    //public decimal? AdjustInflow { get; set; }

    /// <summary>
    /// 累计水量
    /// </summary>
    [SugarColumn(ColumnName = "Back", ColumnDescription = "累计回水量", Length = 8, DecimalDigits = 3)]
    public decimal? Back { get; set; }

    /// <summary>
    /// 累计水量
    /// </summary>
    [SugarColumn(ColumnName = "DayBack", ColumnDescription = "天回水量", Length = 8, DecimalDigits = 3)]
    public decimal? DayBack { get; set; }

    ///// <summary>
    ///// 累计水量
    ///// </summary>
    //[SugarColumn(ColumnName = "AdjustBack", ColumnDescription = "调整天回水量", Length = 8, DecimalDigits = 3)]
    //public decimal? AdjustBack { get; set; }

    /// <summary>
    /// 数据时间
    /// </summary>
    [SugarColumn(ColumnName = "DataTime", ColumnDescription = "数据时间")]
    public DateTime? DataTime { get; set; }

    /// <summary>
    /// 数据时间
    /// </summary>
    [SugarColumn(ColumnName = "IsEnabled", ColumnDescription = "是否启用")]
    public bool IsEnabled { get; set; } = false;
}
